home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Arsenal / OS2 Arsenal v1.0 (Disc 2)(Arsenal Computer).ISO / os2_inet / progcsd.exe / PMAP_CLN.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-10  |  3.9 KB  |  88 lines

  1. /********************************************************copyrite.xmc***/
  2. /*                                                                     */
  3. /*   Licensed Materials - Property of IBM                              */
  4. /*                                                                     */
  5. /*   This module is "Restricted Materials of IBM":                     */
  6. /*      Program Number:   5798RXW                                      */
  7. /*      Program Name:     IBM TCP/IP Version 1.2 for OS/2              */
  8. /*   (C) Copyright IBM Corporation. 1990, 1991.                        */
  9. /*                                                                     */
  10. /*   See IBM Copyright Instructions.                                   */
  11. /*                                                                     */
  12. /********************************************************copyrite.xmc***/
  13. /*
  14.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  15.  * unrestricted use provided that this legend is included on all tape
  16.  * media and as a part of the software program in whole or part.  Users
  17.  * may copy or modify Sun RPC without charge, but are not authorized
  18.  * to license or distribute it to anyone else except as part of a product or
  19.  * program developed by the user.
  20.  *
  21.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  22.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  23.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  24.  *
  25.  * Sun RPC is provided with no support and without any obligation on the
  26.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  27.  * modification or enhancement.
  28.  *
  29.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  30.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  31.  * OR ANY PART THEREOF.
  32.  *
  33.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  34.  * or profits or other special, indirect and consequential damages, even if
  35.  * Sun has been advised of the possibility of such damages.
  36.  *
  37.  * Sun Microsystems, Inc.
  38.  * 2550 Garcia Avenue
  39.  * Mountain View, California  94043
  40.  */
  41. /*      @(#)pmap_clnt.h 1.1 86/02/03 SMI        */
  42.  
  43. /*
  44.  * portmap_clnt.h
  45.  * Supplies C routines to get to portmap services.
  46.  *
  47.  * Copyright (C) 1984, Sun Microsystems, Inc.
  48.  */
  49.  
  50. /*
  51.  * Usage:
  52.  *      success = pmap_set(program, version, protocol, port);
  53.  *      success = pmap_unset(program, version);
  54.  *      port = pmap_getport(address, program, version, protocol);
  55.  *      head = pmap_getmaps(address);
  56.  *      clnt_stat = pmap_rmtcall(address, program, version, procedure,
  57.  *              xdrargs, argsp, xdrres, resp, tout, port_ptr)
  58.  *              (works for udp only.)
  59.  *      clnt_stat = clnt_broadcast(program, version, procedure,
  60.  *              xdrargs, argsp, xdrres, resp, eachresult)
  61.  *              (like pmap_rmtcall, except the call is broadcasted to all
  62.  *              locally connected nets.  For each valid response received,
  63.  *              the procedure eachresult is called.  Its form is:
  64.  *      done = eachresult(resp, raddr)
  65.  *              bool_t done;
  66.  *              caddr_t resp;
  67.  *              struct sockaddr_in raddr;
  68.  *              where resp points to the results of the call and raddr is the
  69.  *              address if the responder to the broadcast.
  70.  */
  71.  
  72. #ifndef __32BIT__
  73. #define _Packed
  74. #define _Seg16
  75. #define _Far16
  76. #define _Cdecl
  77. #endif
  78. #if 0
  79. extern bool_t           _Far16 _Cdecl pmap_set();
  80. extern bool_t           _Far16 _Cdecl pmap_unset();
  81. #endif
  82. u_short          _Far16 _Cdecl pmap_getport(struct sockaddr_in * _Seg16,u_long,u_long,u_long);
  83. #if 0
  84. extern struct pmaplist  * _Seg16 _Far16 _Cdecl pmap_getmaps();
  85. extern enum clnt_stat _Far16 _Cdecl pmap_rmtcall();
  86. #endif
  87. enum clnt_stat          _Far16 _Cdecl clnt_broadcast(u_long,u_long,u_long,xdrproc_t,char * _Seg16,xdrproc_t,char * _Seg16,resultproc_t);
  88.